set(ANDROID_PLATFORM android-21)
set(ANDROID_SDK D:/AndroidDev)
set(CMAKE_SYSTEM_NAME Android)
set(CMAKE_FIND_ROOT_PATH D:/Qt/5.15.2/android)
set(CMAKE_PREFIX_PATH ${CMAKE_FIND_ROOT_PATH}/lib/cmake/Qt5)
set(ANDROID_NATIVE_API_LEVEL 21)
set(ANDROID_DEPLOY_QT ${CMAKE_FIND_ROOT_PATH}/bin/androiddeployqt.exe)
set(ANDROID_STL c++_shared)
set(CMAKE_PROJECT_INCLUDE_BEFORE D:/Qt/Tools/QtCreator/share/qtcreator/package-manager/auto-setup.cmake)
set(ANDROID_ABI x86) # 改此处的值可以生成不同平台的apk, 建议直接写四份不一样的, 然后在vscode-cmake扩展里面用GUI选
set(ANDROID_BUILD_ABI_arm64-v8a OFF)
set(ANDROID_BUILD_ABI_armeabi-v7a OFF)
set(ANDROID_BUILD_ABI_x86 OFF)
set(ANDROID_BUILD_ABI_x86_64 OFF)
set(ANDROID_BUILD_ABI_${ANDROID_ABI} ON)

include(${ANDROID_SDK}/ndk/21.3.6528147/build/cmake/android.toolchain.cmake)
